window.onload=function () {
    var musicButtons=document.getElementById("playButtons");
    var audioMusic=document.getElementById("musicAudio");
    var previousMusic=musicButtons.getElementsByTagName("img")[0];
    var pauseMusic=musicButtons.getElementsByTagName("img")[1];
    var nextMusic=musicButtons.getElementsByTagName("img")[2];
    var onOff=true;
    pauseMusic.onclick=function () {
        if (onOff==true){
            audioMusic.play();
            pauseMusic.value="播放";
            pauseMusic.src="./img/pause.png";
            onOff=false;
        }else{
            audioMusic.pause();
            pauseMusic.value="暂停";
            pauseMusic.src="./img/play.png";
            onOff=true;
        }
    }
};